package cn.doitedu.rest.api.controller;

import cn.doitedu.rest.api.service.PvEventDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
public class PvEventDetailController {

    @Autowired
    PvEventDetailService pvEventDetailService;

    @RequestMapping("/api/pvdetail/{guid}/{sessionid}")
    public String getPvEventsByGuidAndSessionid(@PathVariable String guid, @PathVariable String sessionid) throws IOException {

        String json = pvEventDetailService.getPvEventsByGuidAndSessionid(guid, sessionid);

        return json;
    }



}
